<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">

    </div>
</body>
<script src="https://unpkg.com/vue@next"></script>
<script>
    const myPlugin = {
        install(app, options) {
            console.log(app, options),
            app.prvoide
        }
    }
    const app = Vue.createApp({
        template: `
    <div>hello</div>
    <input value="hello"/>
    <input v-foucs/>
    `,
    inject: ['name'],
    })
    app.component('component-demo', {
        template: `
        <div>
        hello vue.js
        </div>`
    })
    //插件使用
    app.use(myPlugin,'a')
    const vm = app.mount('#app');

</script>

</html>